home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
gfx
/
fract
/
lfracs.lha
/
LFracs-Source.lha
/
LFracs-Source
/
GuiFuncs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-12-20
|
2KB
|
68 lines
/* GuiFuncs.h */
#include <libraries/asl.h>
#include <clib/asl_protos.h>
#include <libraries/gadtools.h>
#include <clib/gadtools_protos.h>
#include <libraries/locale.h>
#include <pragmas/locale_lib.h>
#include <clib/locale_protos.h>
#define GF_NULL 0
SHORT OScanWidth,OScanHeight;
SHORT XScale,YScale,Scale;
typedef USHORT Item,Event;
typedef void (*GuiFuncptr)(Item item,Event event);
struct GuiMenudata {
char *name;
USHORT ident;
GuiFuncptr func;
};
void start_GUI(void);
void loop_GUI(struct Window *win);
void end_GUI(void);
void set_base(SHORT x, SHORT y);
void set_gaps(SHORT xgap, SHORT ygap);
SHORT relX(SHORT z);
SHORT relY(SHORT z);
SHORT fwidth(SHORT n);
SHORT fheight(SHORT n);
SHORT tlength(char *text);
void start_busy(struct Window *win);
void end_busy(struct Window *win);
void fill_tag(struct TagItem *item,Tag tag,ULONG data);
struct IntuiText *make_text(char *text,SHORT left,SHORT top,
UBYTE fpen,struct IntuiText *next);
struct IntuiMessage *read_message(struct Window *win);
struct Gadget *get_gadadr(USHORT gad_ident);
void make_gadlist(USHORT glist_ident,USHORT contxt_ident);
void make_gadget(USHORT gad_ident,ULONG kind,USHORT act_flags,
SHORT posx,SHORT posy,SHORT width,SHORT height,
char *title,char *input,SHORT input_length,
USHORT prev_ident,GuiFuncptr gfunc);
void set_STGADinfo(USHORT gad_ident,UBYTE *info_text);
UBYTE *get_STGADinfo(USHORT gad_ident);
void destroy_gadlist(USHORT glist_ident);
void add_menu(struct Menu **menu,char *title,
SHORT item_anzahl,struct GuiMenudata *itemdata);
void init_menu (struct Window *win,struct Menu *menu);
void destroy_menu(struct Window *win);
BOOL bool_request(struct Window *win,char *title,char *pos,char *neg);
void make_req(struct Requester *req,
SHORT left,SHORT top,SHORT width,SHORT height,
USHORT gad_ident,struct IntuiText *text,UBYTE fill);
void show_req(struct Requester *req,struct Window *win);
void destroy_req(struct Requester *req);
void open_catalog(char *cat_name,char **default_strings);
char *get_catstr(USHORT ident);
void close_catalog(void);